package com.cyou.nad.dao;

import java.util.ArrayList;
import java.util.List;


@SuppressWarnings("serial")
public class PojoPage<T> extends AbstractPagination implements Pagination {
	
	/**
	 * 构造方法，只构造空页.
	 */
	@SuppressWarnings("rawtypes")
	public PojoPage() {
		this(0, 0, DEFAULT_PAGE_SIZE, new ArrayList(0));
	}
	
	@SuppressWarnings({ "unchecked", "rawtypes" })
	public PojoPage(int start, int totalCount, int pageSize, List data) {
		this.pageSize = pageSize;
		this.start = start;
		this.totalCount = totalCount;
		this.data = data;
	}
	private List<T> data;

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}
}
